package com.feifan.oa.domain;

import com.feifan.common.annotation.Excel;
import com.feifan.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 调休时间对象 tb_holiday_working_date
 * @author 非凡
 * @date 2020-07-01
 */
public class HolidayWorkingDate extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 假期名称
     */
    @Excel(name = "假期名称")
    private Holiday holiday;

    /**
     * 开始时间
     */
    @Excel(name = "调休每天日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Holiday getHoliday() {
        return holiday;
    }

    public void setHoliday(Holiday holiday) {
        this.holiday = holiday;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("holiday", getHoliday())
                .append("date", getDate())
                .toString();
    }
}
